<?php
include dirname(dirname(__FILE__)).'/s_user-manage/s_user-verify.php';
include dirname(__FILE__)."/functions.php";
$info=getBooks();
?>
<html>
	<head>
		<?php include dirname(dirname(dirname(__FILE__))).'/include/common-header.php'; ?>
		<script>
		$(document).ready(function(){
			$("#modal").click(function(){
				alert("申请中");
				$(this).addClass("disabled");	
			});
		});
		</script>
	</head>
	<body>
	<div class="col-sm-1"></div>
	<div class="col-sm-10">
	<?php 
		while ($row=mysql_fetch_array($info)){
			echo '<li  class="col-sm-3 goods-li" >'. 
			'<img src="'.$row["url"].'" alt="..." class="img-thumbnail" >'.
			'<h5 class="goods-info">'.$row["name"].'</h5>'.
			'<button id="modal" class="btn btn-primary " data-toggle="modal" data-target="#myModal-login">申请换书</button>'.
			'</li>';
		}
	?>
	</div>
	<div class="col-sm-1"></div>
	</body>
</html>